import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router";


const routes:Array<RouteRecordRaw>=[
    {
        path:'/Register',
        name:'Register',
        component:()=>import('../Views/Register.vue')
    },
    {
        path:'/ULogin',
        name:'ULogin',
        component:()=>import('../Views/ULogin.vue')
    },
    {
        path:'/Xq',
        name:'Xq',
        component:()=>import('../Views/Xq.vue')
    },
    {
        path:'/AddInvest',
        name:'AddInvest',
        component:()=>import('../Views/Invest/AddInvest.vue')
    },
    {
        path:'/ShowInvest',
        name:'ShowInvest',
        component:()=>import('../Views/Invest/ShowInvest.vue')
    },
]

const Routers=createRouter(
    {
        history:createWebHistory(),
        routes
    }
)
export default Routers;//导出